package com.diana.common;

import com.baomidou.mybatisplus.plugins.Page;

public class PageUtils {

    public static <T>Page<T> getPage(Integer index,Integer size){
        int _size = 10,_index =1;
        if(index!=null){
            _index = index;
        }
        if(size!=null){
            _size = size;
        }
        return new Page<T>(_index,_size);
    }
}
